ModelBuilder Batch Import
- Open a CMD line window.
- Enter the name of the import
tool (Haestad.ModelBuilder.BatchImport.Driver.exe) (this will be in same
directory as WaterGEMS executable), followed by an input flag (-i) with
semicolon-delimited mbc files.
One of two other flags are required: -n (for new) or -o (for output)
-n flags requires the name of a new model (.sqlite file) which will be created with the imported data
-o flag requires the name of an existing model which will be updated with the imported data
The order of the flags doesn't matter.
Examples
-
Import from one mbc file to one new model:
Haestad.ModelBuilder.BatchImport.Driver.exe -n "C:\dev\newModel.sqlite" -i "C:\dev\myMbcFile.mbc"
-
Import from multiple mbc files to new model:
Haestad.ModelBuilder.BatchImport.Driver.exe -n "C:\dev\newModel.sqlite" -i "C:\dev\myMbcFile.mbc";"C:\dev\myOtherMbcFile"
-
Import to an existing model:
Haestad.ModelBuilder.BatchImport.Driver.exe -o "C:\dev\existingModel.sqlite" -i "C:\dev\myMbcFile.mbc"